home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / etc / cron.daily / apport < prev    next >
Text File  |  2008-10-24  |  219b  |  6 lines

  1. #!/bin/sh -e
  2. # clean all crash reports which are older than a week.
  3. [ -d /var/crash ] || exit 0
  4. find /var/crash -mindepth 1 -mtime +7 -print0 | xargs -0 rm -f
  5. find /var/crash -mindepth 1 -empty -print0 | xargs -0 rm -f
  6.